package com.hjd.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hjd.shop.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author 胡江迪
 * @since 2020-10-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SGoods extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    @TableId(value = "goods_id", type = IdType.ASSIGN_ID)
    private String goodsId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 库存
     */
    private Integer goodsNumber;

    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;

    /**
     * 商品描述
     */
    private String goodsDesc;

    /**
     * 进货时间
     */
    private Date addTime;

    /**
     * 是否删除;0未删除;1已删除
     */
    private Boolean deleteFlag;
}
